home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Development Tools & Languages / DTSCPlusLibrary / Sources / ApplicationResources.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-14  |  2.7 KB  |  94 lines  |  [TEXT/MPS ]

  1. /* _________________________________________________________________________________________________________ //
  2.   Copyright © 1992-93 Apple Computer, Inc. All rights reserved.
  3.   Macintosh Developer Technical Support.C++ Macintosh Toolbox Framework.
  4.   Date: 11/15/92
  5.   Revision comments are at the end of this file.
  6.   ---
  7.   C++ Application shell.
  8.   ApplicationResources contains the common resource values for both resources and code.
  9.   This header file is used from both code and resource files, that's why we are using #defines.
  10.   _________________________________________________________________________________________________________ */
  11.  
  12.  
  13.  
  14. // Define all the default application resource values
  15.  
  16. // _________________________________________________________________________________________________________ //
  17. // MENU VALUES
  18. // Note that each menu entry has a specified command number, where you just add the menu entry to the
  19. // menu itself, as in mApple = 128, and cAbout 1, and CaboutCommand = 1281. If you have more than 9 menu
  20. // entries, then just continue with 10, 11, as in 12910 (where mFile is 129).
  21.  
  22. // MBAR itself
  23. #define mAppMBAR                 100
  24.  
  25. // Apple menu
  26. #define    mApple                    128        
  27. #define    cAbout                    1
  28. #define cAboutCommand            1281
  29.  
  30. // File menu
  31. #define    mFile                    129    
  32. #define    cNew                    1
  33. #define cNewCommand                1291
  34. #define COpen                    2
  35. #define cOpenCommand            1292
  36. // --- 3
  37. #define    cClose                    4
  38. #define cCloseCommand            1294
  39. #define cSave                    5    
  40. #define cSaveCommand            1295
  41. #define cSaveAs                    6
  42. #define cSaveAsCommand            1296
  43. #define cRevert                    7
  44. #define cRevertCommand            1297
  45. // --- 8
  46. #define cPageSetup                9
  47. #define cPageSetupCommand        1299
  48. #define cPrint                    10
  49. #define cPrintCommand            12910
  50. // --- 11 
  51. #define    cQuit                    12
  52. #define cQuitCommand            12912
  53.  
  54.  
  55. // Edit menu
  56. #define    mEdit                    130
  57. #define    cUndo                    1
  58. #define cUndoCommand            1301
  59. #define    cCut                    3
  60. #define cCutCommand                1303
  61. #define    cCopy                    4
  62. #define cCopyCommand            1304
  63. #define    cPaste                    5
  64. #define cPasteCommand            1305
  65. #define    cClear                    6
  66. #define cClearCommand            1306
  67.  
  68.  
  69.  
  70. // _________________________________________________________________________________________________________ //
  71. // APPLE EVENTS
  72.  
  73. #define kCoreAEDispatchTable    500        // Core events 'aedt' resource
  74. #define cAppleEventReply        501
  75.  
  76. #define kGUIAEDispatchTable        600
  77.  
  78.  
  79.  
  80. // _________________________________________________________________________________________________________ //
  81. // USER INTERACTION RESOURCES
  82.  
  83. #define kUserAlert                100        // our default user alert for presenting core problems
  84.  
  85.  
  86. // _________________________________________________________________________________________________________ //
  87.  
  88.  
  89. /*    Change History (most recent last):
  90.   No        Init.    Date        Comment
  91.   1            khs        11/15/92    New file
  92.   2            khs        1/14/93        Cleanup
  93. */
  94.